Counter-perspective: my WFH office setup is the exact same setup I game and do personal dev on. I'm a button-press away from my KB+M+LCD pointing at my much-more-enjoyable home PC (my corporate device is laughably bad). I don't find I'm tempted away from work during work hours, not even a little bit, UNLESS work sucks: uninteresting work, painful people, busywork, endless process, low autonomy, low trust.. all that stuff has me yearning for the satisfaction I'd otherwise get from productive relationships, meaningful work, and high autonomy. If circumstances permit, I'll leave, but sometimes they don't.
> I don't find I'm tempted away from work during work hours, not even a little bit, UNLESS work sucks: uninteresting work, painful people, busywork, endless process, low autonomy, low trust..
And this happens at the office, too. There are always ways to slack off, you don't need to already be using your sweet gaming pc or whatever. Mindlessly browsing HN or what have you "while compiling" has the same effect.