Don, Can you point me in the direction of where this is identified in the NEC? Doors still open 90 degree or better.
The only allowance for other electrical equipment in the working space is found in 110.26(A)(3), which says "Within the height requirements of this section, other equipment that is associated with the electrical installation and is located above or below the electrical equipment shall be permitted to extend not more than 150 mm (6 in.) beyond the front of the electrical equipment."
So I think Don's point is that the part about "located above or below" the electrical equipment implies that the full width and depth of the working space must be clear of obstacles between the top of the equipment and the bottom of the equipment. I.e. it doesn't say "located above, below, or to the side".
Now on the off chance that the top of enclosure 2 is below the bottom of enclosure 1, or vice versa, then the arrangement would comply with the text of the allowance (edit: assuming the difference in enclosure depths is 6" or less).
Cheers, Wayne