<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Workspace`](Workspace) › [`moveLeafToPopout`](Workspace/moveLeafToPopout)
## Workspace.moveLeafToPopout() method
Migrates this leaf to a new popout window. Only works on the desktop app.
**Signature:**
```typescript
moveLeafToPopout(leaf: WorkspaceLeaf, data?: WorkspaceWindowInitData): WorkspaceWindow;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>leaf</code> | [`WorkspaceLeaf`](WorkspaceLeaf) | |
| <code>data</code> | [`WorkspaceWindowInitData`](WorkspaceWindowInitData) | _(Optional)_ |
**Returns:**
[`WorkspaceWindow`](WorkspaceWindow)
## Exceptions
Error if the app does not support popout windows (i.e. on mobile or if Electron version is too old) 0.15.4