“Call your boss and ask him to let you work from home” is always an option on The Sims 4, but in real life, it's not as easy as it sounds. Ensuring that you have a proper environment where you can actually get stuff done is key to being productive, and the bedroom isn't really the best place for it.
Usually on days where you choose to work from home, you get some specific assignments. Don't sleep till the afternoon, but it's alright if you wake up a little later than usual. Fix a time frame for yourself and try your best to get everything done within that time. Don't forget to take a couple of breaks though.
But do not, under any circumstances, try to work in your pajamas. It never works. Pajamas just put you in a state of leisure and laziness. If you want to be productive, block out distractions, and tell your family members to not disturb you. However, don't forget about the little perks of working from home, such as comfy chairs, and good, healthy food.