Note! Before proceeding, please make sure that you have a USB flash drive at least 8GB in size. All data will be destroyed on this drive, so please back up your files.
Some awesome guy has made a repo for this exact thing https://github.com/LongQT-sea/macos-iso-builder
Flash resulting DMG with Rufus