Can't be done. Office buildings of significant size are not engineered for 24/7 human occupation. The sewer will be inadequate. The water will be inadequate. Retrofitting this would be spectacularly expensive, if it's even possible, as mechanical and plumbing chases are sized for the original design requirements and are difficult (if not impossible) to alter. It may be possible to do if residents were willing to use shared bathrooms, but they will not be.
HVAC is not sized for 24/7 habitation either. Neither are electrical requirements. Stoves produce a lot of unaccounted for BTUs. They require larger electrical service. The electrical service has to be metered individually, which requires quite a lot of space.
Also, when some natural disaster hits and the city loses power? You can't go home. Your home is 50 floors up. Nobody is walking that. The elevators are sized according to different rules than residency, so there are not enough of them, and they won't all be on a generator anyway.