Its a fast and effective way to create a macos bootable installation drive. You can now quit Terminal and eject the volume. UltraDMG is a great tool that can seamlessly write DMG file to USB drive with the booting information and make it bootable.
But, in case you don’t have a Mac, you can use Windows 10 to create an installation disk for Hackintosh. If you have a Mac, you can follow this guide to create your USB bootable disk that can be used to install a Hackintosh.