title: Dispatcher.PushFrame hang issue
body: <pre><code>       Task&lt;string&gt; executeScript = webView.CoreWebView2.ExecuteScriptAsync(&quot;apm.module().hasUnsavedData();&quot;);
          System.Timers.Timer timer = new System.Timers.Timer();
          DispatcherFrame frame = new DispatcherFrame();
  
          string hasUnsavedData = &quot;True&quot;;
  
          executeScript.ContinueWith(_ =&gt;
          {
              if (executeScript.IsFaulted) hasUnsavedData = executeScript.Exception.Message;
              else hasUnsavedData = executeScript.Result;
              frame.Continue = false;
          });
          ComponentDispatcher.PushModal();
          timer.Enabled = true;
          frame.Continue = true;
          Dispatcher.PushFrame(frame);
          timer.Enabled = false;
  
          return !Convert.ToBoolean(hasUnsavedData);
  </code></pre>
  <p>I have this code to get the value from Async call and the calling method is synchronous, code is working at many places but crashes somewhere on &quot;Dispatcher.PushFrame(frame);&quot;.
  Can someone please help me with this issue?</p>