I believe that would not work, as the rules say a submission has to be your own original work. If your project directly takes any code from Geometry Dash, it is not your original work.