One way to avoid the tax is to rent out the residence: https://comptroller.nyc.gov/reports/the-pied-a-terre-tax-and...
It's interesting that people choose to leave their properties vacant - They're effectively "taxing" themselves by foregoing rent (4+%/yr cap rate).
Is vacant real estate even a good investment?