For an example of OS code that uses C++/WinRT, check out the native UI controls library, WinUI: https://github.com/Microsoft/microsoft-ui-xaml
For an example of OS code that uses C++/WinRT, check out the native UI controls library, WinUI: https://github.com/Microsoft/microsoft-ui-xaml