Function Window.correctWindowPositionOnScreen

check if window position inside screen bounds; try to correct if needed; returns true if position is ok.

bool correctWindowPositionOnScreen(
  ref Rect rect
);