public static T CreateWindow (params Type[] desiredDockNextTo);
public static T CreateWindow (string title, params Type[] desiredDockNextTo);

Parameters

TThe type of the window. Must derive from EditorWindow.
titleThe title of the created window. If this value is null, use the class name as title.
desiredDockNextToAn array of EditorWindow types that the window will attempt to dock onto.

Description

Creates an EditorWindow of type T.

Creates and shows a new window and returns the instance of it.