In older OS X versions it was easily possible to restore bootable dmg files by the disk utility.
For newer operation systems, this functionality is still possible by use of the terminal application:
sudo /usr/sbin/asr restore --source myimage.dmg --target /Volumes/UNTITLED --erase -noverify