Usually this is done in desktops, where a special heat sink with copper tubing is glued ... The computer in question here is a Raspberry Pi, and it’s being housed in a purpose-built laser ...
The Pi 5 runs hot enough that you might require a heatsink, or even an active cooling solution with a fan. Raspberry Pi shipped us an active cooling package to test out, and it plugs into a fan ...