About 20 people have been evacuated from a unit block in southwestern Sydney following the collapse of the building’s roof.