I work like that. I work fully remote, around 20-25 hours a week but when I start working I do focus on work for 4-5 hours without any breaks, no HN, no social media, no eating, nothing. In every company/team I've worked in, I was almost always seen as the most productive person, while others reported working 40+ hours a week. It can be done if you have proper environment for it.