# Editor.PanelWindow.FromPanel

```csharp
static PanelWindow FromPanel(Panel panel)
```

The window a panel is being shown in, if it's one of ours.

### Parameters

- `panel` (`Panel`)

### Returns

`PanelWindow`

Declared in [Editor.PanelWindow](/api/Editor.PanelWindow).
Assembly: `Sandbox.Tools`.
