warpMouseInWindow should be an IO operation