I'm just trying to understand how the incident happened. UTHs don't just melt even when they are left on full blast. Which leads me to believe it was sandwiched between the glass and the carpet. If the heat has no way to dissipate it will start to over heat.
Of course that thermostat is a piece of junk.