Well, now it is possible! This mod lets you sleep in dimensions in which beds would normally explode, though without any of the associated benefits like setting your spawn point.
Made with insomnia in about 4 hours very early in the morning.
Created for ModFest: Singularity!
<Technical Details>
Instead of doing player.trySleep (which contains the checks and benefits of sleeping), it instead uses player.sleep which just deals with the sleeping animation.
</Technical Details>
Infinidoge's player is sleeping in a bed in the End on top of one of the obsidian pillars, with the dragon flying across in the background.
Infinidoge's player is sleeping in a bed in the Nether between a Crimson Forest and a Warped Forest.
Infinidoge's player is sleeping on top of an End City, with an End Ship in the background towards the right and a tower towards the left.