For legacy startup this would be launched by plasma-session
For systemd startup naturally it will be it's own unit
The big challenge is that kwin needs to know what session it's restoring/saving if session restore on X is used.
This is typically passed as env vars or command line args on startup, which QSessionManager picks up. All that needs porting to something that works.