I'm working on some library code for WinUI 3 applications, and I want to assert that certain functions are called on the UI thread.
I know how to check if the current thread is the UI thread for UWP, but how do I do that for WinUI 3? CoreDispatcher and CoreWindow aren't used the same in WinUI 3.