windowRect
Get the OS window size in natural pixels. Physical pixels might be more on
a hidpi screen or if the user has content scaling. See windowRectPixels.
Natural pixels is the unit for subwindow sizing and placement.
Only valid between Window.beginand Window.end.
Source
Implementation
pub fn windowRect() Rect.Natural {
// Window.data().rect is the definition of natural
return .cast(currentWindow().data().rect);
}