Lighting a lamp with a widget

Where do you create and add the widget to the viewport?