Thanks everybody, it does work like that!
But I would suggest to…
1. check whether somebody attempts to use this feature with a business license. And if they do, tell them in the notification that they have to enable password protection.
2. question whether you’re really providing security here. Because an attacker who manages to get a spacedesk connection can simply use the software keyboard.