IIRC There is a way to add/remove child objects to/from a layout object. I don't remember the syntax for this right now, but you should be able to find it in the autodoc for layout.gadget.
So, you add a main layout object to your window, and then add the layout you want to replace as a child to that.
--
Glenn Hisdal