The mind is the gateway to the heart, the outer court surrounding the inner sanctuary. What is allowed to fill the mind determines the atmosphere that the heart breathes, the diet that the heart is fed which in turn affects the health or weakness of the heart.
A religion isolated to the mind does not have the truth and power of heart-based religion because it is not based on true reality. But heart-based religion submerged in a mind kept full of shallow thinking and junk food is a religion of emotionalism and self-pleasing that also is not based on the truth of heaven.
Just like you don't feed your physical heart directly, but provide nutrients through the digestive tract and into the blood that determines the health of your heart; just so the mind and imagination and senses are the input points from which the heart draws its strength or is debilitated. Taking drugs to feel good may seem to be satisfying for a few moments but may take years off the usefulness of the heart. Indulging in sin-laced entertainment and pleasure-producing mental and physical activities that are not in harmony with heaven may make us feel good repeatedly in the short-term but continuously weakens the affections and attachments of our heart to God which is the one important criteria that determines our entrance into heaven according to the parable of the sheep and the goats.