Have you ever actually used the bed in an igloo to sleep? There's a glitch with where you're positioned while falling asleep, and you're likely to wake up outside the igloo when you wake up.
This glitch applies when trying to sleep in beds anywhere near blocks - above as low ceilings only zero or one air blocks between, and directly next to the bed as a wall on any side. If you surround a bed with walls on all four sides, it doesn't usually happen- unless the ceiling is low in which case you begi n suffocating.
Given that this glitch is easy to find via igloos, I guess Mojang is aware of it and has a hard time fixing it - but it would still be really nice to do something to ease its effects, if not fix it - in 1.14.X, since it means tight shelters such as igloos are almost 'unsleepable'. I just don't want to wake up outside the igloo again after going to sleep at midnight with a polar bear or stray right outside my door in waiting.