public static void Open(Dialogue d, DialogueSystemWindow dsw) { DialogueWindow window = (DialogueWindow)EditorWindow.GetWindow( typeof(DialogueWindow)); window.Initialize(d, dsw); window.Show(); }