After examining the problem, it turned out that the problem is not in the theme, but in general it is not clear what.
Here on this video everything is detailed.
Part 1 of the video:
In slow motion, you can see that the window opens correctly in the first second, but then it breaks.
Part 2 of the video:
And the fact is that only I have such a problem, I threw a file with this theme to another person, and he had no problems.
The second theme is fully optimized for Windows 10,
the first topic from XP.