Like so many types of working and studying, it probably depends on the learner. Good routines and discipline regarding homework are important. Personally, I think that homework is a time for focus and quiet. I make sure my own son's desk is set up with plenty of space and light – and no music or phones available. This generation seems to be adept at multi media multi tasking (i.e. being watching TV while checking Facebook, etc) but I wonder how productive this is and whether they end up doing half-jobs or jobs take twice as long. Golly, I feel like I sound like my parents or grandparents now but surely we have a responsibility to show them the ideal way – a bit like when we put mushed up healthy stuff in front of babies because it's our job to try to help them to eat well. The old adage: you can take a horse to water but you can't force it to drink.
In general, kids learn by example and my own preference when I am working is to have nice pens and no distractions. Stationery rules! : )
I talk to lots of parents who now try and introduce a weekday digital detox or at least have a cut off time for accessing the internet and apps. It definitely helps them with homework battles.
As with all things parenting, it's a personal journey and we have to do what is right for our family.
I'm all for the Quiet & You've Got One Job route.