Composing music is a pretty mindful activity in its own right, but there’s certainly an argument to say that putting more focus on harmony, and thinking carefully about modulations between keys, can be of great benefit.
https://www.musicradar.com/news/mindful-harmony-free-music-theory-composing-tool