WMS URL Layer import

I would like to have a function that its possible to import a separate overlay map layer with WMS or WMTS over my orthomosaic layer (today its only possible to upload a PDF, JPEG, JPG, PNG file) but would be a great function to read in a WMS url layer.