So I can't find an online reference to this anywhere, but years ago I read a relevant anecdote about (I'm pretty sure) Isaac Asimov.
He used to go into the most noisy environments he could find to write; places like a noisy restaurant or cafe. He found that this forced him to focus in a way that a quiet environment did not. For example, in a quiet environment, you occasionally still hear sounds, but it's rare enough that you don't have to keep your focus actively engaged. So when the sounds inevitably do happen, they distract.
Note that I'm not suggesting that this would work for most people. I've tried it, and maybe it's worked for me once or twice. It's an interesting way to try to get of writer's block, if nothing else.
He used to go into the most noisy environments he could find to write; places like a noisy restaurant or cafe. He found that this forced him to focus in a way that a quiet environment did not. For example, in a quiet environment, you occasionally still hear sounds, but it's rare enough that you don't have to keep your focus actively engaged. So when the sounds inevitably do happen, they distract.
Note that I'm not suggesting that this would work for most people. I've tried it, and maybe it's worked for me once or twice. It's an interesting way to try to get of writer's block, if nothing else.