unsafe fn read_window_rect(hwnd: HWND) -> Option<Rect>
Read the window’s screen-coordinate rectangle. None if the API call fails (window torn down between our event and the read — common during destroy).
None