Let me flip the script on you. How did rich Arabs, Asians and Russians buying US, London, Vancouver, etc. realestate benefit the average American/local? How much of their investment money ended up in the Average Joe's pocket? How much was his life improved from that added money? If you answer me this, I will eat my own hair.
I'm tired of this trope that real estate economic colonialism somehow benefits the locals so much, they should be damn grateful they're being priced out of their own countries/cities by richer foreigners because "they're spending their money here instead of back home".
No! You can try to spin it as some benevolent trickle down economics, but it only benefits the asset owning/rent seeking class and the middle men who make a living by taking a cut on real estate deals (banks, building developers, realtors, lawyers, notaries, etc.), basically those wo are already in the top 10%, if not even higher. The rest, mostly get shafted, as that's where the trickle down ends and the only effect they will experience is housing becoming even more unaffordable for them.
As much as you want to think you're helping, it doesn't improve the country at large, it just increases inequality. The rich get richer, while the poor will be poorer.
Otherwise Thailand, Vietnam and other expat enclaves for Westerners would be out of poverty by now. But that's not how this works. You don't get a poor country out of poverty by housing rich foreigners.