The way countries allow the ultra-wealthy to park money in real estate and pay almost no taxes on it while it drives up the price of a necessary resource for everyone else has to stop. Period.
In an ideal world, this wouldn't be a ban per se. I'd prefer to see that owning a property anyywhere allows that jurisdiction to tax your worldwide income and assets of the beneficial owner as if they were a resident.
Double taxation treatires exist and can handle that case.
New York City (as one example) should be for New Yorkers, not Russian oligarchs, nonresident billionaires and corrupt heads of state.