Its an improvement to the import feature that exists currently:
If a user drags and drop a .sql file to the pma interface (anywhere) the interface should import it and execute it. There should not be a condition that user drops it to import page only. In case db is not selected, we can show a custom error, otherwise, upload the file asynchronously and execute the query just like it happens when import is done.
I'm expecting a UI similar to how it happens in google drive (attached for reference)
One thing thats left to do: in import.php, need to add some text to advertise this feature that upload can be done from any page!
Hint added:
https://github.com/phpmyadmin/phpmyadmin/commit/fb17840088ca8be5c86e6763a1800c2b902729f3