# CreateWindow

> Creates an EditorWindow of type T.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## CreateWindow\<T>(Type\[])

Creates an EditorWindow of type `T`.

```csharp
public static T CreateWindow<T>(params Type[] desiredDockNextTo) where T : EditorWindow
```

### Parameters

**** (\[Type\[]]\(https\://learn.microsoft.com/dotnet/api/system.type)): An array of EditorWindow types that the window will attempt to dock onto.

### Returns

| Type | Description |
| ---- | ----------- |
| T    |             |

### Remarks

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

## CreateWindow\<T>(string, Type\[])

Creates an EditorWindow of type `T`.

```csharp
public static T CreateWindow<T>(string title, params Type[] desiredDockNextTo) where T : EditorWindow
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The title of the created window. If this value is null, use the class name as title.**** (\[Type\[]]\(https\://learn.microsoft.com/dotnet/api/system.type)): An array of EditorWindow types that the window will attempt to dock onto.

### Returns

| Type | Description |
| ---- | ----------- |
| T    |             |

### Remarks

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