This sample demonstrates an undocumented DWM flag to apply the Mica material to a WPF app on Windows 11 22000.
ModernWpf is used to make theme-aware stuff easier.
For 22523 and above, you'll want to use the public DWMWA_SYSTEMBACKDROP_TYPE
flag instead.
Read more info here.