Registers a panel with the window, which enables the window to take the minimum size of the panel into account during redraws.
Informs the window that new-panel is its child panel and sizes new-panel to fill the entire window. Generally called automatically by new-panel when it is initialized.