Custom editor script for folders?

Like we can write custom editor scripts for a specific class. We can write custom editor scripts for all monoscripts by doing this

[CustomEditor(typeof(MonoScript))]

But how to write a custom editor inspector for a folder in unity? I’ve seen it in a video. How to do that? What is the type for folders?

Folders inherit from DefaultAsset.