Problem was fixed by adding this
.WithUseEmbeddedWebView(true)
Now the dialog no longer comes up
result = await authContext.AcquireTokenInteractive(Scopes)
.WithAuthority(Authority)
.WithUseEmbeddedWebView(true)
.WithParentActivityOrWindow(pwindow)
.ExecuteAsync();