One of the biggest factors is having large chunks of uninterrupted time. If your manager and team value deep work, having no meetings days can be a huge help.
And once you have an uninterrupted time block, it's important to ignore potential interruptions. I find this extremely difficult.