I didn't notice it was the actual example from within PAD, however I still able to get full list of the folders when I run it directly from examples, both Win 11 and Server OS.
Hmm so I understand you are able to run it without problems on another user.
Tried another user account and got the result I expected.
I get the same, but I am able to go to This PC and browse entire file system.
they show the selectedfolder as 'Documents' but the box still pops up with 'Desktop' as the root level.
What comes to my mind is that maybe you are using Windows Defender with Ransomware protection (controlled folder access) ON or equivalent feature with 3rd party software.
What is does, it prevents applications from accessing certain folders, to prevent encrypting them.
Perhaps PAD is not whitelisted and is unable to access anything but Desktop folder?
Just guessing though
/edit
What happens when you copy the example and set root folder to C: and run it?
Does it give you any errors? Perhaps we will see permissions denied or similar there