gpt4 suggested that one could select a card in your target-deck (in the browser),
then use the following function to knew the deck id,
and modify the main windows’s selected deck.
making it into the top menu instead of a Right click menu will be easier.
however I haven’t tried anki programming so there is still a gap for me.
gpt4:
def select_deck_from_card(card_id):
card = mw.col.getCard(card_id)
deck_id = card.did # get deck id from card
mw.col.decks.select(deck_id) # select the deck
mw.moveToState(“deckBrowser”) # go back to the main window