A $6$-inch-wide rectangle is rotated $90$ degrees about one of its corners, sweeping out an area of $45\pi$ square inches, excluding the area enclosed by the rectangle in its starting position. Find the rectangle’s length in inches.

Let's think step by step and output the final answer within \boxed{}.
user