[5.0] Add Window::SetPositionSize() and remove redundant value check