Dalziel told the High Court in Glasgow the woman dumped a number of bags on the floor and indicated that they contained controlled substances.
The bags were found to contain 11 packages of cocaine while a total of more than £1,000 was also seized.
The woman’s home and motor vehicle were later searched and police discovered keys to the flat in Meadowside Quay Walk.
Officers went to the property and it was unlocked with no one inside, although a wallet and driving licence in Clark’s name were found.
Dalziel said a large black bag was spotted in the open-plan living area containing 10 taped packages of heroin, while a further 10 blocks of the drug – each with a distinctive stamp – were seized from a cupboard.
There was a total of 21kg of cocaine found, with a potential value of around £1.7m, with the heroin having a maximum sale of £430,000.
A search of the property also found £3805 stacked in elastic bands, a Cartier watch and designer clothes.
Clark was arrested while walking to the flat.