If you want to delve into the science behind flow state, The Rise Of Superman by Steven Kotler is highly recommended:
http://www.stevenkotler.com/book/the-rise-of-super-man/
Just like meditation practice this is a part of the mind we can cultivate. Kotler has some practical tips on how to do so.
Here’s a more easily digestible podcast episode with him talking about the subject: https://youtu.be/1pjZt2szUHY
He gets into a bit of this too, but I’d also suggest looking into controlled breathing exercises ala Wim Hof. Oxygenation and Metabolic enhancement have direct benefits to “mind over matter.”