I put a lean-to, open sided shed, 20 x 10, feet on the back of my barn years ago to park my old JD 350 dozer in.
Plenty of space around that little machine.
I sold Deere and got my first K, an L4630, which is taller ,longer and wider than the old JD and it also fit well in the shed.
Sold the L and recently got an M6040, which is taller and longer than the L and amazingly, it also fits in the shed but with only about 2 inches of clearance above the exhaust stack
I thought I would have to somehow raise the roof but ended up removing about 4 inches of the gravel floor to give me a little extra breathing room.
Sure nice to go out on a snowy morning and not have to shovel out just to get into the tractor.