From what I know, you can't.
I'm guessing you are asking if you can reside in another country.
They do have liberal work from home policy but you will be hired in Denmark and that means you have to be residing in Denmark and have valid Danish Yellow (social security) card.