I work from home. Here's how I get around this: after waking up and having breakfast, I go for a short (~10 minute) walk or bike ride around the block. When I get back, I start working. That kind of "fake commute" is sufficient to trick my brain into separating work from everything else I do in the same space.