I may have a senior moment, but looking at a folder’s FolderItem object in the debugger I found a property named DesktopFolder that does not exists in the FolderItem entry of the Documentation:
There used to be a DesktopFolder shared method for the FolderItem class, which would return an item representing the desktop folder. Similarly, the Trash shared method existed to access the user’s trash folder.
Those were old methods which were replaced by the SpecialFolder module, possibly 20 years ago. It looks like you’re still seeing one