Kbase Article of the Week: Important Safety Information for Pro Display XDR →

Apple Support:

Set up your Pro Display XDR on a hard, stable work surface that allows for adequate air circulation under and around it. Never push objects into the ventilation openings. Your Pro Display XDR can be damaged if dropped, burned, punctured, or crushed, or if it comes in contact with liquids, oils, and lotions. Don’t use a damaged Pro Display XDR, such as one with a cracked screen, as it may cause injury.

Keep your Pro Display XDR away from sources of liquid, such as drinks, oils, lotions, washbasins, bathtubs, shower stalls, and so on. Protect your Pro Display XDR from dampness, humidity, or wet weather, such as rain, snow, and fog.

The XDR is overkill for a bathtub machine, for the record.