To add an app to the macOS sidebar, you'll usually find it in the Applications folder and then drag it into the Favorites section on the left side of the Finder window. To move your Dropbox folder, however, you'll need to look somewhere else. Select your username (next to a house icon) from the sidebar, and then drag the Dropbox folder over.