public async Task <object> RunWithWindow(Func <JSObject, Task <object> > operation)
 {
     await using var window = _jsRuntime.GetDynamicWindow();
     return(await operation(window));
 }