- Create an alias of the folder you want to put in the Dock.
- Drag that alias to the Dock and now when you click on it, the folder opens in a Finder window.
- (Optional) Put your Dock aliases in a folder, and put that folder somewhere (I put mine on the root of my hard disk).