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