Every now and then I discover one of those features in SharePoint Online that is just awesome!

Today I dragged a document into a library with a view that had grouping configured

I wasn’t really sure where else I could drop the document so I dropped my document on Choice 2.

Now my Groups.png file uploaded and my choice is automatically applied:

I tried doing the same in the classic list and then it doesn’t work! This could be quite a good reason to move to modern lists.