If you’ve reached the endgame, and you’re still losing, you should drum up moves that swap pawns skillfully. You might be able to convert to a position with no pawns in which your lone minor piece confronts the enemy rook, when no further progress can be made. Even though the side with the rook could still win, there are reasonable chances to reach a positional draw. But the draw isn’t automatic. Being up the exchange is still a definite advantage.