Create Asset from Public Variable

I have a script which randomly generates some terrain, but I would like to use the generated TerrainData frequently without having to regenerate it every time the game is started. I noticed that there is no way to drag and drop a variable from the inspector to the assets panel. Is there any alternative?

You can create your own assets with AssetDatabase.CreateAsset.