When GrandPerspective scans a folder, it will include all files and folders that the user is allowed to access. This includes hidden files and folders (e.g. files whose name start with a dot such as .DS_Store files). However, if you only want to scan in the contents of a single hidden folder, e.g. the .Trash folder in your home directory, this is a bit more complicated, as by default hidden files are not shown in the Scan folder dialog. You can do one of the following to scan a hidden folder:

.
keyboard shortcut in the Scan folder dialog.
This toggles whether hidden files and folders are shown or not.
When they are shown, you can select any hidden folder to be scanned.