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

Take the dome light out of the Duster & hook it up to a modern car like my wife's 2009 Buick?