I think the best path forward probably involves changing DrRacket so
that, on a case-by-case basis, people can opt-in to loading specific
external libraries automatically. I've not yet tried to implement
that, but if someone wants to, the right starting place is the code
that currently disallows the access, which is here:
https://github.com/racket/drracket/blob/5a71d4580d9799a88707eb269879da0635ae97ad/drracket/drracket/private/expanding-place.rkt#L512
There would be changes required to identify that a shared library load
was denied, convey that back to the main place where DrRacket runs,
then add some way to offer people to allow it, which would then set a
preference somehow and the other place could consult that preference
to see what is allowed. Something like that.
I like this idea and hope to get to it eventually, but I can't do it right now.
Robby