To create something, you need focus. I take meeting notes on paper because a sheet of paper won’t suddenly interrupt me with an unimportant message. When I am in focus mode, I have notification off on my phone and my computer. When writing on the computer, I use the “focus” mode in Word that removes all the menus and covers everything on my screen but the document.
You need to bend your technology to your will. Spend a moment investigating the “focus” features on your laptop and various devices and activate the ones that make sense for you.