Function Window.hasModalWindowsAbove

returns true if there is some modal window opened above this window, and this window should not process mouse/key input and should not allow closing

bool hasModalWindowsAbove();