private void AddTabToHere(object userData) { EditorWindow pane = (EditorWindow) ScriptableObject.CreateInstance((System.Type) userData); this.AddTab(pane); }