Most people don't want to get assaulted, robbed, or infected with disease/pests.
That is a reason why empty office space doesn't solve anything. There's already plenty of of it without Twitter HQ. Running a temporary shelter is more about the logistics/support than it is the physical space.
Someone with a knife requires 4-5 people to subdue minimum, etc.
Someone with an out of control dog will cause serious, potentially fatal injuries before anyone can react.
That people often get these things and want them to protect themselves just makes the problem more intractable, because when you add drugs and mental illness into the mix, the people are impossible to predict too.
Empty office space definitely doesn’t solve it. But doubling staffing at the homeless shelters won’t either.
Any attempt to do something like you’re proposing in a nice space not explicitly setup for the purpose is going to go pretty badly quite quickly.