public class EditorWindowExample : EditorWindow
{
private static EditorWindowExample _winInstance;
[MenuItem("My Tools/Show My Editor Window")]
public static void ShowWindow()
{
_winInstance = GetWindow<EditorWindowExample>(true, "My Editor Window");
}
}