Not only is this a massive fire safety concern (considering why the requirement for two means of egress exists in residential building code), it's also a massive optics concern to stuff unhoused people into what'll effectively be written up by the press as a prison cell.
There is no egress from windows in tall buildings. They don't open, it is too high for ladders. So it adds no safety in this context, so change the code.
Also, if you need a window for a bedroom to be safe, why not an office? People spend 8 hours in an office without a window. Mitigating fire risk in tall buildings is a serious issue, but you have sprinkler systems, internal stair exits, etc.
Changing code here is unviable.