The Pomodoro technique works well. Set a timer for 15 minutes, and focus only on your writing for until the timer goes off; or longer if you like.
Love Pomodoro timers so much had AI make an web app to link them together. You can customize and use it here: https://1recipe.com.