Drag and Drop to another file

I've made several years ago a python script that use a .txt file as argument.
On my windows 10 computer, I drag and drop the .txt file on the .py script.
But with my new Windows 11 computer, dropping file on a .py script file is forbidden.
Any ideas why ?

Found a solution.
Don't know why it is not enabled by default with latest python installation package, but I've had to add this to the registry:

Windows Registry Editor Version 5.00


I think it was not Dopus related.