There is a connection between the mental (spiritual) and the divine. People like St. Francis of Assisi, St. Therese of Lisieux, and others, show that divine inspiration was the source of their wisdom. Prayer was the medium of their contact, but we might say it was pure thinking.
Francis showed his disdain for earthly goods by being happy through poverty and a simple life, and Therese got joy out of praying for others and watching the results. I rely for my good ideas in writing on the Holy Spirit, whose aid I seek in prayer.
I attribute ten published books to that source, and wonder how I did it. Of course, I had the help of Amazon, so it was partly earthly.