# LibTmux.Session.CreateOwnedWindowAsync

- **Module:** LibTmux.Session
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Session.WindowNavigation.cs#L25
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-session-createownedwindowasync/

```
LibTmux.Session.CreateOwnedWindowAsync(request: NewWindowRequest?, cancellationToken: CancellationToken) -> Task<OwnedWindowScope>
```

Creates a window in this session and takes ownership of it.

## Parameters

- `request` (NewWindowRequest?): The window to create.
- `cancellationToken` (CancellationToken): Cancels the tmux commands.

## Returns

A scope that stops the window when disposed.
