# Editor.PanelDockWindows.RestoreState

```csharp
bool RestoreState(string json)
```

Restores a workspace using the existing content instances. Invalid data leaves the workspace untouched.
Returns false during a drag/layout operation or if windows cannot be created. Desktop windows require
the main host to belong to an editor PanelWindow. This saves layout, not the contents of each panel.

### Parameters

- `json` (`string`)

### Returns

`bool`

Declared in [Editor.PanelDockWindows](/api/Editor.PanelDockWindows).
Assembly: `Sandbox.Tools`.
