Add any event mouse tracking (DECSET 1003)
Revive viewDidMoveToWindow for avoiding problems when adding the view to a new view hierarchy
Replace some unsafe assertions with if-statements
Rename MOUSE_BUTTON_RELEASE to MOUSE_BUTTON_NONE