Source tab for UI Widget

we currently only have the designer for UI Widget,

it would be great to also be able to directly type the code in XML in a source tab (something like XAML)