If there would be a way to get this information (especially while live-moving the window) then JUCE would have a lot less bugs to worry about (see this thread for example). I don’t think there is an easy cross-platform way to do this. See this bug for example: