Far as I can tell, it happens every time I receive a whisper. Which means that every time someone sends me a stupid guild advertisement, or a bot sends spam at me, the icon in the taskbar will flash if I’m alt tabbed.
Not to my knowledge. Maybe there’s an addon but that’s a topic for UI and Macro not tech support (we only handle crashing/disconnecting problems in here).