The answer is simple, look at Mexico.
Friend of ours recently sold their house in a Mexican area here in town and moved over to Pismo Beach. He was here this morning and went by the house. He said they have someone living in the Tuff shed (a large one) that is beside the house and someone else living in the workshop that is behind and attached to the detached garage.
Our code enforcement here doesn't care.