Can eating mostly fat help you lose weight?

On paper, the ketogenic diet sounds great.