Adding a toplevel sizer

This is similar to the addition of a toplevel widget, but the action is performed in two steps: