_rawWindowProc should be a static method. (PR #10670)
While _rawWindowProc does not need any internal access to CustomWindow,
it is strongly coupled to it. Make _rawWindowProc a static method,
to convey this coupling.
Add type hints for _wClass and abstract property className