The common workflow when working with Pyside is to build the UI with PySide Designer which outputs an xml file (.ui`). This file is then fed into pyside6-uic` to generate the python code that actually the window.
Resource files work in a similar manner. A resource file describes resources (e.g. fonts and images) that should be included into the application. These are described in an xml file (.qrc`) and compiled into Python by pyside6-rcc.
Keeping the xml and compiled files synced by hand is tedious. A common option is to use a makefile to automatically re-generate the python files …