The table containing required items to revive a ghost, LuaEntity.ghost_prototype.items_to_place_this, does not include information on what quality level is needed, even though the ItemStackDefinition it contains seems to support it
After placing a legendary wooden chest with ghost building: