Getting screen coordinate of a window