I did not yet find a way, to center a Form if attached to a Window. Is this possible?
There is no nice solution. The possible workarounds are
a) set a plain HTML as content of window, in such HTML you can have a centered div, inside which form can be initialized
b) you can place a 3 cell layout inside of the window and attach the form to the center cell