A method you can use is to enable background sound when the game is minimized. Then, disable all sounds except master volume and system sound volume.

That way, when you are tabbed out and doing other stuff, the game will remain quiet until the DF queue pops and then it will play the notification sound.