Run this sample application on Windows Press the click me button on the first page and then choose any option from the modal prompt that appears Now click the [X] to close the application, it will crash with the following unhandled exception
System.ArgumentException: Value does not fall within the expected range. at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr) at ABI.Microsoft.UI.Input.IInputNonClientPointerSourceStaticsMethods.GetForWindowId(IObjectReference _obj, WindowId windowId) at Microsoft.UI.Input.InputNonClientPointerSource.GetForWindowId(WindowId windowId) at Microsoft.Maui.Platform.WindowRootView.UpdateTitleBarContentSize() at Microsoft.Maui.Platform.WindowRootView.PlatformView_LayoutUpdated(Object sender, Object e) at WinRT.GenericTypeInstantiations.Windows_Foundation_EventHandler_1_object.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr args)