Option for enabling "Do Not Disturb" mode on capable operating systems

As a Zwifter using primarily MacOS, I often get distracted by incoming notifications. Especially incoming calls while running Zwift in fullscreen are extremely disruptive, as the view changes back to the desktop. Even if the call is not answered, you manually need to switch back to the Zwift screen.

Would it be possible to add an option to automatically enable Apple’s “Do Not Disturb” mode on MacOS and iOS (and any other platform supporting such a setting) during rides/workouts?