using ManyToManyRawIdWidget

so i want to have the same thing that django admin has with many to many fields
a plus sign next to the field that allows the user to create a new instance of that related data

i found that django admin uses ManyToManyRawIdWidget which is placed in django/contrib/admin/widgets.py

so i was wondering how would i go about extending this widget?
since the original one is bound to the admin site and requires information related to that

<opinion>
I think the easiest way would be to simply copy the appropriate code into your project, and modify and extend it as you see fit.

You’ll actually be better off that way since doing this will insulate you from any future changes to the admin that may occur, and will more directly make this feature part of your project.
</opinion>