About scale and resolution, it is a pain to handle that. I try to find a solution in the past and I finally give up. Too many resolutions, I prefer to release all UI base on my resolution and let people change the scale. The only feature that I was really proud of is the anchor point and how docking windows are working ....

About viewport, I will try to create some kind of global viewport and local viewport of each UI.