Function Window.isChild

returns true if widget is child of either main widget, one of popups or window scrollbar

bool isChild(
  Widget w
);