@kwwww3456
More info might help
1. What is the name of the .mzp script that you are trying to install?
2. What exactly does the compile error say?
3. You say that dragging and dropping the .mzp doesn't do anything, but you also say it produces a compiler error message. So I guess you mean that it doesn't do anything other than generate a compiler error?
What a properly created .mzp file is supposed to do when it is dragged into a max viewport is to install the script and any resources it needs into the appropriate directories on your hard drive. You still need to take another step to actually run the script from Max, which is to go into Customize>Customize User Interface menu (on the main toolbar) and find the script under in "Action" list and drag it to a custom Menu or custom Toolbar that you have created. You can also just hot key it via the Customize>HotKey Editor.
Since you are getting an error in the Max Listener, then maybe the author of the .mzp did not anticipate something about your directory structure or just made an error in creating the .mzp. It is possible that the specific compiler error you are getting can point to one or the other. Also, there are typically instructions that are provided by the creator of the .mzp file as to what the name of the script is that should show up in the list of actions in the Customize>Customize User Interface menu and you can check whether the script was installed or whether the error caused the installation to abort.
Since there are many properly created .mzp installers that work fine in max 2022 (I have installed various ones myself without having an issue) then it makes sense for you to also contact the vendor of the script for help (if you haven't already done so) since this is not likely a max 2022 issue per se. But in the meantime if you provide the info requested above, maybe we can figure out what the problem might be.