Yes, ImGui works fine in WASM.
Look my imGuIZMO.quat and glslSmartDeNoise simplest projects on how integrate ImGui in WASM, with GLFW and SDL: https://github.com/BrutPitt
P.S. imGuIZMO.quat have also "ImGui_demo" inside it
P.S. imGuIZMO.quat have also "ImGui_demo" inside it