Resize a window in WinUI (part 1: find the DPI)

To resize a window, you must know its DPI. Let's figure it out.