That was exactly what I was wondering about. When I tested, LCMS2 failed to do the conversions correctly from p2020-pq to p2020-linear. So I’m not sure how many changes are needed there.
There is a small problem with such mapping: in SDR mode Windows maps diffuse white to 80cd/^m, not to 100 cd/^m. And in HDR mode this value is configurable, but is not available to normal desktop applications’ API (yet), it is present only in UWP environment.