The double definiteness comes into play when the noun is modified by an adjective, like so:
"Den grønne frakken har ikke knapper."
"The green coat does not have buttons."
As you can see, there still needs to be gender agreement:
Den grønne frakken
Det grønne treet