$widget->toplevel Returns the reference of the top-level window containing $widget.