title: Getting an DPI aware correct RECT from GetWindowRect from a external window
body: <p>I'm in the process of making an application DPI Aware but I have a need to do a <code>GetWindowRect</code> on HWNDs from other applications. My problem is this works fine on applications that are also DPI Aware but how do I detect if the <code>HWND</code> handle is DPI virtualized e.g. scaled so I can scale it myself? Or are there other APIs I've missed which will give me the size of the window in a DPI aware way from a HWND from another process?</p>
  
  <p>I've tried the <code>LogicalToPhysicalPoint</code> but that always seem to fail, possibly because the HWND doesn't belong to my application.</p>