I am able to successfully open a custom HTML page (popup) on opportunity view form, by placing a custom button new to new button, in Dynamics 365 using Xrm.Utility.openWebResource, post that if I am opening any opportunity from out of the box view of CRM it is also opening in pop up until I refresh it or until I open another entity in CRM. Please let me know if there is any solution