How New York real estate became the new Swiss bank account, drawing in wealthy investors from foreign countries.