# Editor.PanelWindow.PanelWindow

## Overload 1

```csharp
PanelWindow(string title, Vector2 size)
```

Open a window and start running UI in it.

### Parameters

- `title` (`string`)
- `size` (`Vector2`)

## Overload 2

```csharp
PanelWindow(string title, Vector2 size, Vector2 position)
```

Open a window at a given desktop position. Pass -1,-1 to let the OS place it.

### Parameters

- `title` (`string`)
- `size` (`Vector2`)
- `position` (`Vector2`)

## Overload 3

```csharp
PanelWindow(string title, Vector2 size, Vector2 position, bool borderless)
```

Open a window. A borderless window has no OS title bar - draw your own, and mark the panels
that should drag it with the `window-drag` class.

### Parameters

- `title` (`string`)
- `size` (`Vector2`)
- `position` (`Vector2`)
- `borderless` (`bool`)

## Overload 4

```csharp
PanelWindow(string title, Vector2 size, Vector2 position, bool borderless, bool vsync)
```

Open a window. With `vsync` the window's present blocks for the display,
which is what an app that has nothing else to do wants - the launcher paces itself on it.

### Parameters

- `title` (`string`)
- `size` (`Vector2`)
- `position` (`Vector2`)
- `borderless` (`bool`)
- `vsync` (`bool`)

Declared in [Editor.PanelWindow](/api/Editor.PanelWindow).
Assembly: `Sandbox.Tools`.
