[MAINT] Rewrite unit tests for `PaintingWindow` with Google Test.

As the title says.