Creating gold mines in the Warcraft III World Editor is a matter of adjusting the player settings. Here's how:
Open the unit menu and find where it says "Player 1 (RED)". Click the button on the side of it, and a dropdown list will appear letting you choose which player to edit. From that list, select "Neutral Passive" at the bottom.
Then, in the building tab, choose the Gold Mine and place it wherever you'd like on your map. That's all it takes to add gold mines to your custom creation.