# LibTmux.Session.CreateOwnedWindowAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Session.WindowNavigation.cs#L25
- **Page:** https://libtmux.org/en/csharp/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.
