There are several ways to add folders to the Legend View.
Related concepts
Legend
Related tasks
Using the Legend View
Related reference
Legend View