I found that is possible to retrieve the mouse position in IE outside the document or even the browser window, by using "window.onblur" or "window.onfocusout" or something like that.
Even in Firefox it gives you negative mouse coordinates in the onmouseout event handler if you let your mouse pointer go out of the viewport quickly.
Can there be done more in Firefox, something that gets close to the aforementioned IE behaviour?