I ran into an issue where I couldn't right click on my macOS desktop from High Sierra onwards. I ignored it but then I started noticing that files saved there, connected servers and attached drives also weren't showing even though they were enabled in Finder's preferences.
The fix is:
❯ defaults write com.apple.finder CreateDesktop true && killall Finder