If you are creating custom editors for unity but only want the gui for that editor to be drawn in the currently active scene view try this ...
if (SceneView.mouseOverWindow.GetInstanceID() == SceneView.currentDrawingSceneView.GetInstanceID())
{
this.DrawGUI(SceneView.currentDrawingSceneView);
}