The rectangle is in window coordinates relative to itself, so that the bottom left corner is at the position (0,0).
If the size of a frame window has been changed to zero by WinSetWindowPos or WinSetMultWindowPos, the original size is returned because the window is hidden, not sized, in this instance.