Window position

Hi everyone,
In my experiment i display a window and I want this window to be centered regardless of the screen size. Any idea how to do this?

Thanks for your help!