Trigger Condition : Trigger on Window under Cursor

There are already a few actions triggering specifically on the window under cursor, but would it be possible to have the possibility to act on the window under cursor for any action? This could be added to the "Trigger Condition" menu for example.

More specifically, I would like to be able to snap/resize my windows without having to select each app.