How to Customize / Add Fields / Apply JS / Client Side Validation on Opportunity Close as Won/Lost pop-up in D365 CRM V9.x

Hello folks, Today we will learn, How to customize the Opportunity Close as Won/Lost pop-up window. Sometimes we have requirement to add some more fields to capture more data or to apply client side validation on it.