It depends on the building, you would have to ask management. There is a general aviation airport where people can live in the hangers with their airplanes.
Sort of like a loft or artist studio. Part of the problem with living in a work building is that the insurance companies that write the policy for the property might not allow live-ins. Ironically, there are many more accidents in residences than in businesses.