OnSceneGUI and GUIUtility.hotControl

This is driving me nuts, if I set GUIUtility.hotControl to a Passive FocusType in MouseDrag event, I’m having a hard time reversing the effects (not able to pan and orbit etc.) when I want want to. It basically keeps it that way unless I select something else. This quite annoying as the docs arent any helpful. Please suggest a way.

Thank you.

As per the document on GUIUtility.hotControl it states that

once the user mouseup’s, the control
sets hotControl to 0 in order to
indicate that other controls can now
respond to user input.

So you have to set the GUIUtility.hotControl to 0 in mouse up event.