Without getting into the technical side and differences, it works very much like any exchange. You own one asset and want to trade it for another asset. In most cases, one asset is the equivalent of the US Dollar. So for example you can swap USDC (a stable coin tied to the US Dollar) for DOOR.