To prepare your USB drive with this method, you'll require:
A USB installer drive with GPT partition scheme is used to setup Intel-based Macs. Old PowerPC-based Macs need a different method.
Download the raw disk image of the bootable OS X installer drive for your selected Mac OS X version.
The filename has an ending in
_rawimage.bin and it's description says, that it's specifically meant for "DD or W32DiskImager"
Ensure you have a 8GB or bigger flash drive.
If it currently isn't formatted, format it so it can be detected by W32DiskImager.
Now we are going to write the image to the USB flash drive.
Use the Windows function "Safely remove hardware" to unmount the newly created USB installer drive.
The drive is not readable by Windows. If you have access to a Mac, use it to verify your newly created installer drive, which should be detected an offer a program Install Mac OS X or similar. Again, safely unmount the drive by clicking the Eject symbol in Finder