Add widget to native tizen application

I don’t really understand how the widget works. If I have a native tizen application, is it possible to add a widget to it that does certain functions? Or does it have to be developed separately? Can you generate an app that when installed as an independent application also installs a widget if you want to use it?

Please read this guide about widget development