Implement mouse callback for windows