# Editor.PanelWindow.PickOpenFile

```csharp
System.Threading.Tasks.Task<string> PickOpenFile(string defaultPath = null, string filters = null)
```

Ask the OS for a file to open. The filter is name and extension list pairs, like
"Scene files|scene;prefab|All files|*". Null when the user cancels.

### Parameters

- `defaultPath` (`string`), default `null`
- `filters` (`string`), default `null`

### Returns

`System.Threading.Tasks.Task<string>`

Declared in [Editor.PanelWindow](/api/Editor.PanelWindow).
Assembly: `Sandbox.Tools`.
