This article from Apple >> Use the Dock on Mac
User wrote " Sonoma 14.3. "
Current version is now 14.5 Sonoma >> Keep your Mac up to date
About the security content of macOS Sonoma 14.5
Always make a Time Machine Backup before doing any upDates
Specifically
Add, remove, or rearrange Dock items
On your Mac, do any of the following:
- Add an item to the Dock: Drag apps to the left side of (or above) the line that separates the recently used apps. Drag files and folders to the right side of (or below) the other line that separates recently used apps. An alias for the item is placed in the Dock.

- When you drag a folder to the Dock, you can view it as a stack. By default, the Dock comes with a Downloads folder. See Use folders in the Dock.
- Remove an item from the Dock: Drag the item out of the Dock until Remove is shown. Only the alias is removed; the actual item remains on your Mac.
- If you accidentally remove an app icon from the Dock, it’s easy to put it back (the app is still on your Mac). Open the app to make its icon appear again in the Dock. Control-click the app’s icon, then choose Options > Keep in Dock.
- Rearrange items in the Dock: Drag an item to a new location.
Tip: If you use Handoff, the Handoff icon of the app you’re using on your iPhone, iPad, iPod touch, or Apple Watch appears near the right end of the Dock.