With the fix of RT-16759 new problem was introduced. Now main window is rendered incorrectly. The resulting scene state is different from what is expected and restores on window resize and similar events.
When render to image invocation is commented out, the problem is not reproducible.
When render to image invocation is commented out, the problem is not reproducible.