Duplicate Function: How can I manage fields to duplicate?

Hello Devs,

I would like to customise the duplicate function and expand the fields that are also copied when duplicating. To my knowledge, this is not documented. I have seen different approaches, but I am unsure how to proceed here and therefore ask for your support.

Kind regards.

Martin