Purity of heart requires the modesty which is patience, decency, and discretion. Modesty protects the intimate center of the person.
You shall not covet... anything that is your neighbor's....
You shall not desire your neighbor's house, his field, or his manservant, or his maidservant,, or his ox, or his ass, or anything that is your neighbor's (EX 20:17; Deut 5:21).
For where your treasure is, there will your heart be also (Mt 6:21).