One meaning of "dope" is "idiot" or "stupid person". In this context, it's a friendly way of saying "idiot" and not really meaning it.
Another meaning of "dope" is "illicit drugs", but that doesn't apply here.
"We are not wholly bad or good, who live our lives under Milk Wood"
prayer of the Reverend Eli Jenkins in Under Milk Wood by Dylan Thomas