Andrea Thopia, Señor de Matija