On top of architectural issues like plumbing and access to windows, cities like NYC have programs where converting economically obsolete offices to residential exempts the building from property taxes if at least some units are for low-income renters.