connect the sun (directional light) rotation to a slider in a widget

Look at the slider details - you can put any values there directly. And you can remap any value to anything else using the nodes above.