Instantiate Prefab From Assets Folder

For the last few hours I have been trying to work out exactly why this line isn’t working.

GameObject TwoSlice = AssetDatabase.LoadAssetAtPath("Assets/Prefabs/Sword.prefab", typeof(GameObject)) as GameObject;

I had this line in a script that was working a few months ago, but I haven’t used it much since then and now it doesn’t work any more.
I have this in an editor window, and a button calls this but it doesn’t do anything any more, no object is instantiated into the scene.

don’t you need a

Instantiate(TwoSlice, ..., ...);

line after that to actually create a gameobject in the scene, all you’ve done there is initialise the TwoSlice reference to something