It's possible to place a bed in The End. However, as the developers didn't want the player to sleep in The End, beds will explode when placed. It's possible to actually defeat the Enderdragon with precise placing of beds. Upon exploding, they will injure the Enderdragon with very high damage if it is close by.
Contributed by CosmykTheDolfyn