Converts local window coordinates to screen coordinates.
The local value in the box x is translated to a global x-value and put back into x. Similarly, the local value in y is changed to a global y-value.