Is there a way to make a script editor plugin?

Hello, I am trying to make something like the default script editor but inside of a plugin gui. Anyone even know if this is posible?

Heard you could use script.source or something
https://developer.roblox.com/en-us/api-reference/property/Script/Source