Items missing in Finder sidebar on Mac

If you accidentally hide an item like Desktop, Documents or Downloads under Favorites in your Mac sidebar, you can find and restore it by simply going to:

Finder > Preferences > Missing item