Print to pdf and window images

When you print a Project to PDF, you can have a screen shot of each window (by default ?).

The window drawing is incorrect: an horizontal line is not at its place, the Controls are too high (above the Window’s title)…

It was already broken in Xojo 2021r2.1 (and I checked with 2022r1.1)…