Get the screen-relative coordinates of an open popup Window

If I have a popup window open, how would I get its screen-relative coordinates?
I’m after something identical to using system.gui.convertPointToScreen(…) for components on a window.

I need something like:

window = system.gui.openWindow('Window Name', None)
x,y = convertWindowLocationToScreen(window)

Cheers