Desktop Window Manager (dwm.exe) is a legitimate Windows process responsible for creating the graphical user interface and enabling visual effects.
DWM composites each program's buffer to display all windows as a single desktop image.
If DWM consumes excessive CPU and RAM resources, you can turn off visual effects, disable transparency effects, update graphics drivers, or update the Windows operating system.
Desktop Window Manager is not malware and can be confirmed by checking its file location.