About Drag and drop textures

The guys who are using the Node Wrangler add-on may know that pressing T while holding shift+ctrl in windows will lead to add all types of maps to a material when they are PBR ones. But, if the maps are image textures then it will be an error. So what I mean is that to make an add on based on image textures to produce PBR type materials without actually making a node-set up by the user similar to node wrangler. The main idea is giving blank options(where they can drag and drop images) saying displacement, albedo, roughness, etc to make PBR type materials.
Can anyone help with making it possible?