I usually write deep into the night with rain sounds; it's kinda relaxing but I end sleepy soooo... I don't really know.
Plus, I can't write if I'm anxious or have compelling things to do. I have to start writing while relaxed and that helps maintain the state, yes.