Earlier quoted context omitted.
I think it must be more complex and subtle than that. Isn't India the home of the Kama Sutra? Like, if any country can claim to be the world experts on sex, it's India, they even beat the Dutch.
Kama Sutra is about 2000 years old in the current form, according to Wikipedia 2 CE. To put this in perspective, this predates the Muslim/Mongol invasions by about 1000 years, British invasion/colonization by 1700 years etc. Societies change.
The Indians welcomed the muslims because although they were happy playing sittars and doing yoga they missed contact with the wider world and so welcomed the rich ethnic diversity of the mughul empire and then lived happily together in peace and love until the British deliberately caused religous strife in 1946 by forcing the muslims to move to Pakistan.
See also - how native american tribes lived in peace and harmony together and at one with nature until the British arrived.