LoadLayout is the recommended way. The designer takes care of handling the resize events. This will be complicated to do properly in your code.
Anyway, you can create a layout with a Pane anchored to all sides, load it and then add the nodes you like to the pane.