Query unpublished nodes by property value

Is there any way to query unpublised content by property value.

E.g. I want to find an unpublised node where the value of a custom property 'code' == 'abc1234'

Thanks


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/49595-query-unpublished-nodes-by-property-value