register_toplevel() adds the calling container to an internal array of widgets having toplevel status within that application.
Registering a container as toplevel can speed up some of the processing involved in resizing.