Taiwan eyes lessons from Ukraine as it strengthens informal connections amid increasing Chinese threats.