How do I make my dome light fade away when you shut the door?

I was curious about what it takes to convert my dome light on my '73 Duster to fade-away after you shut the door, just like my Dodge Caravan.

Anybody do this before?