What set did this assembly come from?
I think I found it:

SW911617-1: Palpatine's Shuttle

it was apparently included in a Star Wars comic magazine in November 2016



How did I do it ?

I'm the author of pyrebrickable (Github page here), and by installing the python package rebrickable-data we can explore the rebrickable database directly (query it with SQL). Rebrickable contains a seemingly exhaustive set inventories with parts colors etc. In that case, I looked at 3 distinctive parts in your picture:

2540 # Plate, Modified 1 x 2 with Handle on Side - Free Ends
# thought it was white at first but it is in fact light bluish gray

60471 # Hinge Plate 1 x 2 Locking with 2 Fingers on Side
# in black

3023 # Plate 1 X 2
# in trans-clear 


By searching in the database for sets that contain at least one of all these parts, I could narrow down to a handful of sets, and in it was that Palpatine shuttle from which we can easily recognize a part of the main ship body