If you use the native OS API, then it's easy to get what you want.
RECT area;
GetWindowRect(window.getSystemHandle(), &area);
Not tested, but even if it's not exactly right, it should guide you to a working solution (if this function gives the area of the window with decorations, then you may need GetClientRect + ClientToScreen instead).