Function Window.setAsModalFor

Marks the current window as a modal for the given parent window

void setAsModalFor (
  Window parent
);