Can we use Windows Service as a webhook receiver?

Can we use Windows Service as a webhook receiver? If yes, then how?