Dokkan Battle can also be played on an Apple Mac or a Windows PC, but it only works for Android-based accounts.
First, you have to follow one of these instructions:
Then, after you have successfully installed the emulator, install Dokkan Battle from the Google Play Store if you want to play the Global version or via QooApp APK if you want to play Dokkan Battle Japan. Now you can launch the game and transfer the account to the emulator.
If you do not know where you can input the code, here is an explanation for it: