Returns the window at the top of this widget's hierarchy. This function may return itself for accessible windows, and could return nullptr in cases where the widget is not currently part of a hierarchy.