A .dmg file is a Disk Image, that needs to be mounted via double clicking on it. From that mounted Disk Image you can drag the actual application into the Applications folder.
Or do you have a problem doing that?
Maybe you could provide more information, like what Mac OS X version you use and what exact file you want to open and what you have done already?
Installing Applications in Mac OS X