bed warmer (litterally translated)

this was used in the past when in the homes there's no heating system, how does it work? putting the embers in and slipped inside a wooden structure that held the sheets raised and allowed to find the bed nice and warm on cold long winter nights