How can I import the selected file into studio?

hello, so im wondering how plugins are able to import something you chose from a file into studio. I’ve been looking at the api’s but couldn’t find a single thing on it. This is my code:

local StudioService = game:GetService("StudioService")
local Toolbar = plugin:CreateToolbar("Mesh Importer 9000")
local ImportButton = Toolbar:CreateButton("Import", "button for importing meshes.", "rbxassetid://8643299958")
local FileWhitelist = {"fbx", "obj", "blend"}
	local Selected:File = StudioService:PromptImportFile(FileWhitelist)
	if Selected ~= nil then
		local TempId = Selected:GetTemporaryId()


any help is appreciated