We propose a novel resonant detector of terahertz radiation based on a heterostructure with an ungated two-dimensional electron channel, with a lateral Schottky junction at one of the channel edges, substantiate its operation, and evaluate the device characteristics. We demonstrate that the detector responsivity can exhibit sharp resonant maxima at the frequencies pertaining to the plasma oscillations. As shown, the peak values of the responsivity of the detector proposed can exceed the responsivity of the standard Schottky detectors by several orders of magnitude if the electron mobility in the channel is sufficiently high.