A 22-story abandoned office building occupied by hundreds of squatters was engulfed in flames and collapsed in the center of Sao Paulo early Tuesday.