Returns the window priority or -1 if the window can't be found.
The window of which priority must be checked.
See Implementation
Returns the window priority or -1 if the window can't be found.