Is there a way to create a folder hierarchy view in the editor?

The idea is to create using the editor something similar to the folder hierarchy shown when you import a package. Is there a way to do it? I’ve found the Foldout component and the Toggle but I don’t know if there is a way to mix both in the same component as the package import window.

Sample image:

46480-captura-de-pantalla-2015-05-16-a-las-212244.png

Sure. You need to do an EditorGUILayout.Begin/EndHorizontal, and put the two between them, with the toggle having no text. You might need to use some GUILayout.Min/MaxWidth functions to get the layouts just right though.