Get the PID that owns the window.
The window to check who created it
the PID of the owner who created this window. On windows this will always work and be accurate. On X11 this might return -1 if none is specified and might not actually be the actual owner.
See Implementation
Get the PID that owns the window.